package day20170504.ch03;

/**
 * 多线程售票测试
 * @author 罗智壕-13424431416
 *
 * 2017年5月4日
 */
public class TicketThreadTest {
	public static void main(String[] args) {
		//新建5个线程
		TicketThread ticket01 = new TicketThread();
		TicketThread ticket02 = new TicketThread();
		TicketThread ticket03 = new TicketThread();
		TicketThread ticket04 = new TicketThread();
		TicketThread ticket05 = new TicketThread();
		
		//启动多线程
		new Thread(ticket01).start();
		new Thread(ticket02).start();
		new Thread(ticket03).start();
		new Thread(ticket04).start();
		new Thread(ticket05).start();
	}
}
